package kr.hkit.powerjava.chapter09;

class MyMetric {
	static double mile = 1;
	static double kilo = 1 ;

	public MyMetric(){}

	public static double kiloToMile(){
		double ktm = kilo * 0.621371;
		return ktm;
	}
	
	public static double mileToKilo(){
		double mtk = mile / 0.621371;
		return mtk;
	}
	
}

public class MyMetricTest{
	public static void main(String[] args) {
		MyMetric m = new MyMetric();
		m.kilo = 1;
		double n = MyMetric.kiloToMile();
		System.out.println(n);
		m.mile = 0.621371;
		double o = MyMetric.mileToKilo();
		System.out.println(o);
	}
}